<?php
	$par = new stdClass();
	$par->itemCount = $this->dt->itemCount;
	echo json_encode($par);
?>

<?php
	if(!property_exists($this, 'error'))
		$this->dtw->write();
	else
		echo '<p>'.$this->error.'</p>';
?>
